package models

import "time"

type Order struct {
	ID          uint   `gorm:"primaryKey"`
	OrderNumber string `gorm:"unique"`
	UserID      uint
	Status      string // submitted / processing / completed
	TotalPrice  float64
	CreatedAt   time.Time
}

type OrderItem struct {
	ID        uint `gorm:"primaryKey"`
	OrderID   uint
	ProductID uint
	Quantity  int
	Price     float64
}
